package ch14.memcached;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;
import io.netty.util.CharsetUtil;

import java.util.List;

/**
 * Created by zc on 2016/6/8.
 */
public class MemcachedRequestEncoder extends MessageToMessageEncoder<MemcachedRequest> {

    @Override
    protected void encode(ChannelHandlerContext ctx,
                          MemcachedRequest msg,
                          List<Object> out) throws Exception {
        byte[] key = msg.getKey().getBytes(CharsetUtil.UTF_8);

    }

}
